From: | Robert A. Sisk |
Date: | 5 Sep 2001 at 02:17:00 |
Subject: | Re: Starting programs, waiting for execution |
On 04-Sep-01 Craig Hutchison <chotch@tig.com.au> wrote:
> If ~SHOW('P','YAM') THEN DO /* if we find the YAM port, don't do it */
> Say = 'YAM is not running: Opening it NOW!'
> Address Command 'Run <>NIL: YAM:YAM'
> YAMLoaded = 0 /* YAM isn't running */
> Count = 0 /* attempt #1 */
> DO UNTIL YAMLoaded /* do it */
> Call DELAY(200) /* wait for YAM */
> IF SHOW('P','YAM') THEN YAMLoaded = 1
> Else do /* still no, try again */
> Count = Count + 1 /* attempt number */
> If Count = 5 then do /* too many tries */
> Say = 'YAM will NOT run. Exiting!' /* Damn! bye bye..... */
> EXIT 20
> End
> End
> End
> End
A simpler way to wait for a port to appear would be be to use the, umm,
WaitForPort command.
Kind regards,
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Secure your servers with 128-bit SSL encryption! Grab your copy of VeriSign's FREE Guide: "Securing Your Web Site for Business." Get it Now!
http://us.click.yahoo.com/n7RbFC/zhwCAA/yigFAA/saFolB/TM
---------------------------------------------------------------------~->
ARexx mailing list - No flames, no overquoting, no crossposting.
Unsub: Blank mail to mailto:arexx-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/